import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //素数
        for (int i = 2; i <= 100; i++) {
            int j = 2;
            for (; j <= i; j++) {
                if(i%j==0){
                    //能除尽,不是素数
                    break;
                }
            }if(j>=i){
                System.out.println(i);
            }
        }
    }
    public static void main0(String[] args) {
        //输出 1000 - 2000 之间所有的闰年
        for (int year = 1000; year <= 2000; year++) {
            if(year % 4 == 0 || year %400 == 0 && year %100 != 0){
                System.out.println(year);
            }
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String key = "123";
        int count = 3;
        while(count != 0){
            String passkey = scanner.nextLine();
            if(passkey.equals(key)){
                System.out.println("密码正确");
                break;
            }else {
                count--;
                System.out.println("密码错误");
            }
        }
    }
}
